package com.lch.thread.homework.w0508;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author: liuchenhui
 * @create: 2019-05-10 18:42
 **/
public class ThreadDemo {
    public static void main(String[] args) {
        final ExecutorService executorService = Executors.newSingleThreadExecutor();
        // 1 接收用户的消息
        System.out.println("接收用户微信发送过来的信息");
        final String open_id = "sgsdfgsfhdthewrfafv";
        // 2 用该文字合成图片回复给用户
        executorService.submit(new Runnable() {
            @Override
            public void run() {
                System.out.println("合成图片");
                System.out.println("图片发送给：open_id=" + open_id);
            }
        });
        System.out.println("处理完毕");
    }
}
